package com.ruoyi.ebike.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 礼品卡配置对象 gift_card
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class GiftCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 礼品卡编号 */
    @Excel(name = "礼品卡编号")
    private Long id;

    /** 卡券金额 */
    @Excel(name = "卡券金额")
    private BigDecimal cardAmount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 结束时间 */
    private Date endTime;

    /** 兑换码 */
    @Excel(name = "兑换码")
    private String code;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 备注 */
    @Excel(name = "备注")
    private String addition;

    /** 手机号 */
    @Excel(name = "手机号")
    private String userPhoneNumber;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** $column.columnComment */
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardAmount(BigDecimal cardAmount) 
    {
        this.cardAmount = cardAmount;
    }

    public BigDecimal getCardAmount() 
    {
        return cardAmount;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAddition(String addition) 
    {
        this.addition = addition;
    }

    public String getAddition() 
    {
        return addition;
    }
    public void setUserPhoneNumber(String userPhoneNumber) 
    {
        this.userPhoneNumber = userPhoneNumber;
    }

    public String getUserPhoneNumber() 
    {
        return userPhoneNumber;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardAmount", getCardAmount())
            .append("createdTime", getCreatedTime())
            .append("endTime", getEndTime())
            .append("code", getCode())
            .append("status", getStatus())
            .append("addition", getAddition())
            .append("userPhoneNumber", getUserPhoneNumber())
            .append("userId", getUserId())
            .append("useTime", getUseTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
